-- 基础信息
local base_info = {
	group_id = 133302717
}

-- Trigger变量
local defs = {
	gadget_prison = 717001,
	duration = 210,
	rampage_time = 40,
	eye_point = 717067
}

-- DEFS_MISCS
local energy_info = {
        [1] = { time = 100, step = {-30,30},points = { 717072, 717073, 717074, 717075, 717076, 717077}},
        --[2] = { time = 180, step = {-1,1},points = {5075,5076,5077,5078,5079,5080}},
}
--这个group对应的图用哪些，这里就填哪些（对应关系请咨询TD）
local disguiseList = {34,37,39}

--================================================================
-- 
-- 配置
-- 
--================================================================

-- 怪物
monsters = {
}

-- NPC
npcs = {
}

-- 装置
gadgets = {
	[717001] = { config_id = 717001, gadget_id = 70800087, pos = { x = -118.997, y = 252.096, z = 2910.727 }, rot = { x = 0.000, y = 299.643, z = 0.000 }, level = 10, area_id = 20 },
	[717002] = { config_id = 717002, gadget_id = 70800437, pos = { x = -86.397, y = 251.892, z = 2891.057 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 10, area_id = 20 },
	[717003] = { config_id = 717003, gadget_id = 70800437, pos = { x = -70.542, y = 251.753, z = 2910.257 }, rot = { x = 0.000, y = 20.000, z = 0.000 }, level = 10, area_id = 20 },
	[717004] = { config_id = 717004, gadget_id = 70800437, pos = { x = -93.479, y = 250.988, z = 2908.862 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 10, area_id = 20 },
	[717005] = { config_id = 717005, gadget_id = 70800107, pos = { x = -66.870, y = 272.000, z = 2904.333 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, area_id = 20 },
	[717006] = { config_id = 717006, gadget_id = 70800437, pos = { x = -62.282, y = 256.985, z = 2894.594 }, rot = { x = 0.000, y = 30.000, z = 0.000 }, level = 10, area_id = 20 },
	[717007] = { config_id = 717007, gadget_id = 70800437, pos = { x = -59.988, y = 257.121, z = 2904.022 }, rot = { x = 0.000, y = 11.000, z = 0.000 }, level = 10, area_id = 20 },
	[717008] = { config_id = 717008, gadget_id = 70800437, pos = { x = -64.695, y = 251.744, z = 2908.450 }, rot = { x = 0.000, y = 55.000, z = 0.000 }, level = 10, area_id = 20 },
	[717009] = { config_id = 717009, gadget_id = 70800437, pos = { x = -85.969, y = 251.580, z = 2897.862 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 10, area_id = 20 },
	[717010] = { config_id = 717010, gadget_id = 70800437, pos = { x = -97.325, y = 250.494, z = 2922.505 }, rot = { x = 0.000, y = 55.000, z = 0.000 }, level = 10, area_id = 20 },
	[717011] = { config_id = 717011, gadget_id = 70800437, pos = { x = -73.469, y = 252.196, z = 2875.914 }, rot = { x = 0.000, y = 60.000, z = 0.000 }, level = 10, area_id = 20 },
	[717012] = { config_id = 717012, gadget_id = 70800437, pos = { x = -73.592, y = 251.900, z = 2896.746 }, rot = { x = 0.000, y = 60.000, z = 0.000 }, level = 10, area_id = 20 },
	[717013] = { config_id = 717013, gadget_id = 70800437, pos = { x = -77.263, y = 257.261, z = 2899.419 }, rot = { x = 0.000, y = 60.000, z = 0.000 }, level = 10, area_id = 20 },
	[717014] = { config_id = 717014, gadget_id = 70800437, pos = { x = -101.224, y = 251.892, z = 2886.456 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 10, area_id = 20 },
	[717015] = { config_id = 717015, gadget_id = 70800437, pos = { x = -87.355, y = 250.863, z = 2931.859 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 10, area_id = 20 },
	[717016] = { config_id = 717016, gadget_id = 70800437, pos = { x = -104.820, y = 251.387, z = 2885.651 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 10, area_id = 20 },
	[717017] = { config_id = 717017, gadget_id = 70800437, pos = { x = -74.947, y = 251.614, z = 2894.405 }, rot = { x = 0.000, y = 60.000, z = 0.000 }, level = 10, area_id = 20 },
	[717018] = { config_id = 717018, gadget_id = 70800437, pos = { x = -44.438, y = 264.093, z = 2896.020 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 10, area_id = 20 },
	[717019] = { config_id = 717019, gadget_id = 70800434, pos = { x = -63.800, y = 257.353, z = 2915.211 }, rot = { x = 0.000, y = 30.000, z = 0.000 }, level = 10, area_id = 20 },
	[717020] = { config_id = 717020, gadget_id = 70800434, pos = { x = -91.369, y = 250.202, z = 2933.279 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 10, area_id = 20 },
	[717021] = { config_id = 717021, gadget_id = 70800434, pos = { x = -79.400, y = 251.743, z = 2911.165 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 10, area_id = 20 },
	[717022] = { config_id = 717022, gadget_id = 70800434, pos = { x = -85.828, y = 251.297, z = 2882.669 }, rot = { x = 0.000, y = 20.069, z = 0.000 }, level = 10, area_id = 20 },
	[717023] = { config_id = 717023, gadget_id = 70800434, pos = { x = -68.942, y = 251.892, z = 2885.935 }, rot = { x = 0.000, y = 160.000, z = 0.000 }, level = 10, area_id = 20 },
	[717024] = { config_id = 717024, gadget_id = 70800434, pos = { x = -85.222, y = 257.273, z = 2884.212 }, rot = { x = 0.000, y = 195.299, z = 0.000 }, level = 10, area_id = 20 },
	[717025] = { config_id = 717025, gadget_id = 70800434, pos = { x = -106.227, y = 250.373, z = 2891.954 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 10, area_id = 20 },
	[717026] = { config_id = 717026, gadget_id = 70800434, pos = { x = -68.605, y = 252.721, z = 2920.625 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 10, area_id = 20 },
	[717027] = { config_id = 717027, gadget_id = 70800434, pos = { x = -62.980, y = 257.353, z = 2920.768 }, rot = { x = 0.000, y = 17.876, z = 0.000 }, level = 10, area_id = 20 },
	[717028] = { config_id = 717028, gadget_id = 70800434, pos = { x = -69.866, y = 262.742, z = 2920.239 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 10, area_id = 20 },
	[717029] = { config_id = 717029, gadget_id = 70800434, pos = { x = -91.055, y = 251.048, z = 2914.337 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 10, area_id = 20 },
	[717030] = { config_id = 717030, gadget_id = 70800434, pos = { x = -59.563, y = 262.760, z = 2910.865 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 10, area_id = 20 },
	[717031] = { config_id = 717031, gadget_id = 70800434, pos = { x = -111.933, y = 250.386, z = 2931.252 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 10, area_id = 20 },
	[717032] = { config_id = 717032, gadget_id = 70800434, pos = { x = -42.234, y = 266.843, z = 2918.157 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 10, area_id = 20 },
	[717033] = { config_id = 717033, gadget_id = 70800439, pos = { x = -72.237, y = 258.740, z = 2897.719 }, rot = { x = 0.000, y = 11.185, z = 0.000 }, level = 10, area_id = 20 },
	[717034] = { config_id = 717034, gadget_id = 70800439, pos = { x = -81.014, y = 251.765, z = 2897.998 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 10, area_id = 20 },
	[717035] = { config_id = 717035, gadget_id = 70800439, pos = { x = -98.357, y = 251.892, z = 2895.578 }, rot = { x = 0.000, y = 49.612, z = 0.000 }, level = 10, area_id = 20 },
	[717036] = { config_id = 717036, gadget_id = 70800439, pos = { x = -95.296, y = 258.019, z = 2872.776 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 10, area_id = 20 },
	[717037] = { config_id = 717037, gadget_id = 70800439, pos = { x = -82.268, y = 252.097, z = 2878.188 }, rot = { x = 0.000, y = 331.903, z = 0.000 }, level = 10, area_id = 20 },
	[717039] = { config_id = 717039, gadget_id = 70800439, pos = { x = -85.128, y = 258.857, z = 2870.200 }, rot = { x = 0.000, y = 40.000, z = 0.000 }, level = 10, area_id = 20 },
	[717040] = { config_id = 717040, gadget_id = 70800439, pos = { x = -53.054, y = 263.455, z = 2884.736 }, rot = { x = 0.000, y = 40.000, z = 0.000 }, level = 10, area_id = 20 },
	[717042] = { config_id = 717042, gadget_id = 70800439, pos = { x = -64.438, y = 251.821, z = 2889.962 }, rot = { x = 0.000, y = 40.000, z = 0.000 }, level = 10, area_id = 20 },
	[717043] = { config_id = 717043, gadget_id = 70800439, pos = { x = -55.101, y = 257.102, z = 2913.614 }, rot = { x = 0.000, y = 293.140, z = 0.000 }, level = 10, area_id = 20 },
	[717044] = { config_id = 717044, gadget_id = 70800439, pos = { x = -42.781, y = 264.561, z = 2903.877 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 10, area_id = 20 },
	[717045] = { config_id = 717045, gadget_id = 70800439, pos = { x = -45.415, y = 265.238, z = 2887.283 }, rot = { x = 0.000, y = 20.000, z = 0.000 }, level = 10, area_id = 20 },
	[717046] = { config_id = 717046, gadget_id = 70800439, pos = { x = -100.542, y = 257.293, z = 2890.689 }, rot = { x = 0.000, y = 20.000, z = 0.000 }, level = 10, area_id = 20 },
	[717047] = { config_id = 717047, gadget_id = 70800439, pos = { x = -98.342, y = 250.866, z = 2906.529 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 10, area_id = 20 },
	[717048] = { config_id = 717048, gadget_id = 70800439, pos = { x = -73.630, y = 251.892, z = 2908.175 }, rot = { x = 0.000, y = 160.000, z = 0.000 }, level = 10, area_id = 20 },
	[717062] = { config_id = 717062, gadget_id = 70800421, pos = { x = -86.138, y = 267.523, z = 2903.232 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, area_id = 20 }
}

-- 区域
regions = {
	[717066] = { config_id = 717066, shape = RegionShape.SPHERE, radius = 200, pos = { x = -88.632, y = 254.205, z = 2905.121 }, area_id = 20 },
	[717067] = { config_id = 717067, shape = RegionShape.SPHERE, radius = 100, pos = { x = -88.632, y = 254.205, z = 2905.121 }, area_id = 20 }
}

-- 触发器
triggers = {
}

-- 点位
points = {
	-- 场景猎手出生点
	{ config_id = 717068, pos = { x = -118.580, y = 250.102, z = 2910.642 }, rot = { x = 0.000, y = 108.323, z = 0.000 }, area_id = 20 },
	-- 场景游侠出生点1
	{ config_id = 717069, pos = { x = -107.148, y = 250.695, z = 2909.522 }, rot = { x = 0.000, y = 100.031, z = 0.000 }, area_id = 20 },
	-- 场景游侠出生点2
	{ config_id = 717070, pos = { x = -107.543, y = 250.587, z = 2907.496 }, rot = { x = 353.530, y = 103.235, z = 356.407 }, area_id = 20 },
	-- 场景游侠出生点3
	{ config_id = 717071, pos = { x = -107.934, y = 250.474, z = 2905.613 }, rot = { x = 352.860, y = 98.155, z = 356.160 }, area_id = 20 },
	-- 能量随机点1
	{ config_id = 717072, pos = { x = -101.925, y = 247.658, z = 2945.718 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, area_id = 20 },
	-- 能量随机点1
	{ config_id = 717073, pos = { x = -63.185, y = 262.753, z = 2915.961 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, area_id = 20 },
	-- 能量随机点1
	{ config_id = 717074, pos = { x = -103.158, y = 250.722, z = 2912.403 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, area_id = 20 },
	-- 能量随机点1
	{ config_id = 717075, pos = { x = -121.434, y = 248.667, z = 2884.364 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, area_id = 20 },
	-- 能量随机点1
	{ config_id = 717076, pos = { x = -74.346, y = 257.591, z = 2922.556 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, area_id = 20 },
	-- 能量随机点1
	{ config_id = 717077, pos = { x = -78.078, y = 257.293, z = 2879.047 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, area_id = 20 }
}

-- 变量
variables = {
}

--================================================================
-- 
-- 初始化配置
-- 
--================================================================

-- 初始化时创建
init_config = {
	suite = 1,
	end_suite = 0,
	rand_suite = false
}

--================================================================
-- 
-- 小组配置
-- 
--================================================================

suites = {
	{
		-- suite_id = 1,
		-- description = ,
		monsters = { },
		gadgets = { 717001 },
		regions = { 717066, 717067 },
		triggers = { },
		rand_weight = 100
	},
	{
		-- suite_id = 2,
		-- description = ,
		monsters = { },
		gadgets = { 717002, 717003, 717004, 717006, 717007, 717008, 717009, 717010, 717011, 717012, 717013, 717014, 717015, 717016, 717017, 717018, 717019, 717020, 717021, 717022, 717023, 717024, 717025, 717026, 717027, 717028, 717029, 717030, 717031, 717032, 717033, 717034, 717035, 717036, 717037, 717039, 717040, 717042, 717043, 717044, 717045, 717046, 717047, 717048 },
		regions = { },
		triggers = { },
		rand_weight = 100
	},
	{
		-- suite_id = 3,
		-- description = ,
		monsters = { },
		gadgets = { 717005, 717062 },
		regions = { },
		triggers = { },
		rand_weight = 100
	},
	{
		-- suite_id = 4,
		-- description = ,
		monsters = { },
		gadgets = { },
		regions = { },
		triggers = { },
		rand_weight = 100
	}
}

--================================================================
-- 
-- 触发器
-- 
--================================================================

require "V3_3/HideAndSeek_Gallery_V3"
require "V3_3/HideAndSeek_Skill_V3"